<template "ui/head" />
<template "ui/css" />
<template "ui/iframe" />
<div class="layui-tabs layui-tabs-card" style="margin-top:0;">
    <ul class="layui-tabs-header">
        <li class="layui-this">第三方视频</li>
        <li><a href="{{$_L['url']['own_form']}}video&id={{$_L['form']['id']}}">上传视频</a></li>
    </ul>
</div>
<div class="lcms-form-ivideo">
    <p class="lcms-form-des">请将视频上传到“哔哩哔哩”、“腾讯视频”、“优酷视频”等第三方平台，然后将嵌入代码填到下方即可！</p>
    <textarea placeholder="请输入嵌入代码"></textarea>
    <button class="layui-btn layui-btn-fluid">插入视频</button>
    <br/><br/>
    <img src="{{$_L['url']['own_path']}}admin/tpl/static/video.jpg" width="100%" height="auto"/>
    <br/>
</div>
<script type="text/javascript">$(".lcms-form-ivideo button").on("click",function(){var video=$(".lcms-form-ivideo textarea").val();if(video){window.parent.postMessage({type:"lcms-editor-addivideo",content:video},"*");LCMS.util.iframe({do:"close"})}else{LCMS.util.notify({type:"error",content:"请填入视频链接"})}});</script>
<template "ui/foot" />